package Ventanas;

import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.*;
import javax.swing.border.*;




/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
/**
 * @author lucas
 */
public class VentanaAsignarPacienteYMedico extends JFrame {

	{
		//Set Look & Feel
		try {
			javax.swing.UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
		} catch(Exception e) {
			e.printStackTrace();
		}
	}


	public VentanaAsignarPacienteYMedico(){
		initComponents();
	}
	
	private void initComponents() {

		panelPaciente = new JPanel();
		btnValidar = new JButton();
		lblTipoDoc = new JLabel();
		lblNumeroDoc = new JLabel();
		cbxTipoDoc = new JComboBox();
		txtNumeroDoc = new JTextField();
		panelMedico = new JPanel();
		cbxMedico = new JComboBox();
		space = new JPanel(null);
	
		//======== this ========
		{
			this.setTitle("Asignar Paciente y Medico");
			this.setIconImage(new ImageIcon("/Seminario-Cliente/src/Images/mas.png").getImage());
			this.setVisible(true);
			this.setResizable(false);
			this.setAlwaysOnTop(true);
			Container thisContentPane = this.getContentPane();
			thisContentPane.setLayout(null);
	
			//---- btnSeleccionarTurno ----

			//---- btnCancelar ----

			//======== panelPaciente ========
			{
				panelPaciente.setBorder(new TitledBorder("Seleccionar Paciente"));
				panelPaciente.setLayout(null);
	
				//---- btnValidar ----
				btnValidar.setText("Validar");
				btnValidar.setIcon(new ImageIcon("C:\\Documents and Settings\\LUCAS\\Escritorio\\images\\viewBuscar.png"));
				panelPaciente.add(btnValidar);
				btnValidar.setBounds(285, 45, 94, 20);
				
	
				//---- lblTipoDoc ----
				lblTipoDoc.setText("Tipo de Documento");
				panelPaciente.add(lblTipoDoc);
				lblTipoDoc.setBounds(10, 18, 130, 20);
	
				//---- lblNumeroDoc ----
				lblNumeroDoc.setText("Numero de Documento");
				panelPaciente.add(lblNumeroDoc);
				lblNumeroDoc.setBounds(10, 45, 130, 20);
	
				//---- cbxTipoDoc ----
				cbxTipoDoc.setModel(new DefaultComboBoxModel(new String[] {
					"DNI",
					"LC",
					"PAS"
				}));
				panelPaciente.add(cbxTipoDoc);
				cbxTipoDoc.setBounds(160, 18, 95, 20);
				panelPaciente.add(txtNumeroDoc);
				txtNumeroDoc.setBounds(160, 45, 95, txtNumeroDoc.getPreferredSize().height);
				{
					txtDocumento = new JTextField();
					panelPaciente.add(txtDocumento);
					txtDocumento.setBounds(158, 43, 97, 22);
				}
				{
					
					
					lblNombre = new JLabel();
					panelPaciente.add(lblNombre);
					lblNombre.setText("Nombre y Apellido");
					lblNombre.setBounds(10, 75, 109, 14);
				}
				{
					JTextField txtNombre;
					txtNombre = new JTextField();
					panelPaciente.add(txtNombre);
					txtNombre.setBounds(158, 72, 97, 20);
				}

				{ // compute preferred size
					Dimension preferredSize = new Dimension();
					for(int i = 0; i < panelPaciente.getComponentCount(); i++) {
						Rectangle bounds = panelPaciente.getComponent(i).getBounds();
						preferredSize.width = Math.max(bounds.x + bounds.width, preferredSize.width);
						preferredSize.height = Math.max(bounds.y + bounds.height, preferredSize.height);
					}
					Insets insets = panelPaciente.getInsets();
					preferredSize.width += insets.right;
					preferredSize.height += insets.bottom;
					panelPaciente.setMinimumSize(preferredSize);
				}
			}
			thisContentPane.add(panelPaciente);
			panelPaciente.setBounds(15, 11, 390, 101);
	
			//======== panelMedico ========
			{
				panelMedico.setBorder(new TitledBorder("Seleccionar M\u00e9dico y Especialidad"));
				panelMedico.setLayout(null);
	
				//---- cbxMedico ----
				cbxMedico.setModel(new DefaultComboBoxModel(new String[] {
					"Medico1",
					"Medico2",
					"Medico3",
					"Medico4"
				}));
				panelMedico.add(cbxMedico);
				cbxMedico.setBounds(226, 31, 114, 21);
				{
					ComboBoxModel comboEspecialidadModel = 
						new DefaultComboBoxModel(
								new String[] { "Item One", "Item Two" });
					JComboBox comboEspecialidad = new JComboBox();
					panelMedico.add(comboEspecialidad);
					comboEspecialidad.setModel(comboEspecialidadModel);
					comboEspecialidad.setBounds(23, 31, 136, 20);
				}

				{ // compute preferred size
					Dimension preferredSize = new Dimension();
					for(int i = 0; i < panelMedico.getComponentCount(); i++) {
						

						Rectangle bounds = panelMedico.getComponent(i).getBounds();
						preferredSize.width = Math.max(bounds.x + bounds.width, preferredSize.width);
						preferredSize.height = Math.max(bounds.y + bounds.height, preferredSize.height);
					}
					Insets insets = panelMedico.getInsets();
					preferredSize.width += insets.right;
					preferredSize.height += insets.bottom;
					panelMedico.setMinimumSize(preferredSize);
				}
			}
			thisContentPane.add(panelMedico);
			panelMedico.setBounds(15, 118, 390, 75);
			thisContentPane.add(space);
			space.setBounds(0, 230, 426, space.getPreferredSize().height);
			{
				jButton1 = new JButton();
				thisContentPane.add(jButton1);
				jButton1.setIcon(new ImageIcon("/Seminario-Cliente/src/Images/siguiente.png"));
				jButton1.setText("Seleccionar Turno");
				jButton1.setBounds(48, 204, 144, 23);
				jButton1.addActionListener(new ActionListener(){
							
							public void actionPerformed (ActionEvent paramActionEvent){
								VentanaSeleccionarTurno vent= new VentanaSeleccionarTurno();
								vent.setVisible(true);
								dispose();
							}
						});
			}
			{
				jButton2 = new JButton();
				thisContentPane.add(jButton2);
				jButton2.setText("Cancelar");
				jButton2.setIcon(new ImageIcon("/Seminario-Cliente/src/Images/cruzCancelar.jpg"));
				jButton2.setBounds(267, 204, 110, 23);
				jButton2.addActionListener(new ActionListener(){
							
							public void actionPerformed (ActionEvent paramActionEvent){
								dispose();
							}
						});
			}

			{ // compute preferred size
				Dimension preferredSize = new Dimension();
				for(int i = 0; i < thisContentPane.getComponentCount(); i++) {
					
					Rectangle bounds = thisContentPane.getComponent(i).getBounds();
					preferredSize.width = Math.max(bounds.x + bounds.width, preferredSize.width);
					preferredSize.height = Math.max(bounds.y + bounds.height, preferredSize.height);
				}
				Insets insets = thisContentPane.getInsets();
				preferredSize.width += insets.right;
				preferredSize.height += insets.bottom;
				thisContentPane.setMinimumSize(preferredSize);
				thisContentPane.setPreferredSize(preferredSize);
			}
			this.pack();
			this.setSize(448, 279);
			this.setLocationRelativeTo(null);
		}
	}
	private JLabel lblNombre;
	private JPanel panelPaciente;
	private JButton btnValidar;
	private JButton jButton2;
	private JButton jButton1;
	private JTextField txtDocumento;
	private JLabel lblTipoDoc;
	private JLabel lblNumeroDoc;
	private JComboBox cbxTipoDoc;
	private JTextField txtNumeroDoc;
	private JPanel panelMedico;
	private JComboBox cbxMedico;
	private JPanel space;
}
